package fpeas.sideeffect;

public class SideEffectUtility
{
	public static <T> SideEffect<T> doNothing()
	{
		return new SideEffect<T>()
		{
			public void run(final T input)
			{
			}
		};
	}

	public static <T> SideEffect<T> throwRuntimeException()
	{
		return new SideEffect<T>()
		{
			public void run(final T input)
			{
				//noinspection ProhibitedExceptionThrown
				throw new RuntimeException();
			}
		};
	}
}